#include <stdio.h>
#include <string.h>

int main(void)
{
    char num1[] = {0x01, 0x02, 0x03};
    char num2[10] = {0x01, 0x02, 0x03, 0};
    char str1[] = {'a', 'b', 'c'};
    char str2[] = {'a', 'b', 'c', 0, 1};
    char str3[] = "abc";                        // end whit \0
    char str4[10] = "abc";
    
    printf("sizeof(num1) = %ld\r\n", sizeof(num1));       // 3
    printf("sizeof(num2) = %ld\r\n", sizeof(num2));       // 10
    printf("sizeof(str1) = %ld\r\n", sizeof(str1));       // 3
    printf("sizeof(str2) = %ld\r\n", sizeof(str2));       // 5
    printf("sizeof(str3) = %ld\r\n", sizeof(str3));       // 4
    printf("strlen(str3) = %ld\r\n", strlen(str3));       // 3
    printf("sizeof(str4) = %ld\r\n", sizeof(str4));       // 10

    return 0;
}